package com.xulu.romance.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xulu.romance.dao.ArticleCommentDao;
import com.xulu.romance.dao.QuestionCommentDao;
import com.xulu.romance.pojo.ArticleComment;
import com.xulu.romance.pojo.QuestionComment;
import com.xulu.romance.service.ArticleCommentService;
import com.xulu.romance.service.QuestionCommentService;
import com.xulu.romance.vo.ArticleCommentVo;
import com.xulu.romance.vo.QuestionCommentVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @Author xiaoxulu
 * @Date 2024/1/13 22:00
 */

@Service
public class ArticleCommentServiceImpl extends ServiceImpl<ArticleCommentDao, ArticleComment> implements ArticleCommentService {

    @Autowired
    private ArticleCommentDao articleCommentDao;

    @Override
    public Integer findCommentDetailCount() {
        return articleCommentDao.findCommentDetailCount();
    }

    @Override
    public List<ArticleCommentVo> findCommentDetail(Integer currentPage, Integer size) {
        return articleCommentDao.findCommentDetail(currentPage, size);
    }

    @Override
    public List<ArticleCommentVo> findCommentDetailCondition(Integer currentPage, Integer size, String key) {
        return articleCommentDao.findCommentDetailCondition(currentPage, size, key);
    }

    @Override
    public List<ArticleCommentVo> findAll() {
        return articleCommentDao.findAll();
    }

    @Override
    public List<ArticleCommentVo> findCommentByArticleId(Integer id) {
        return articleCommentDao.findCommentByArticleId(id);
    }
}
